package com.yjd.comm.easycard.enums;



/**
 * <b>description</b>：易借卡资料上传状态<br>
 * <b>time</b>：2015-4-8上午11:34:47 <br>
 * <b>author</b>： SongJian
 */
public enum ECUploadCompleteEnum {

	UPLOAD_NOCOMPLETE(0,"未完成"),
	UPLOAD_COMPLETE(1,"完成");
	
	private Integer value;
	private String description;

	private ECUploadCompleteEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static ECUploadCompleteEnum get(Integer value) {
		ECUploadCompleteEnum[] enums = ECUploadCompleteEnum.values();
		for (ECUploadCompleteEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		ECUploadCompleteEnum enum1 = ECUploadCompleteEnum.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}
	
}
